<style type="text/css">
<!--
fieldset {
	margin-bottom: 5px;
	margin-left: 5px;
	padding: 5px;
}

.abasFormulario {
	font-weight: bold;
	font-size: 10px;
}

.abasFormulario legend {
	font-style: italic;
	font-weight: normal;
	color: #0000CC;
}
</style>
<h3>Consultar ofertas</h3>

<hr />
<table class="abasFormulario" width="100%" align="center">
	<tr>
		<td align="center">
		<table align="center" border="0">
			<tr>
				<td colspan="3"
					style="text-align: left; font-weight: normal; font-weight: bold; font-size: 18px"><br />
				<br />
				Informe abaixo a palavra chave de sua busca, será listado as ofertas disponíveis de acordo com suas competências<br />
				<br />
				<br />

				</td>
			</tr>
			<tr>
				<td colspan="3" style="text-align: justify; font-weight: normal; font-size: 11px">
					<form action="<?php echo site_url('ofertas/busca');?>" method="post">
						<table border="0" width="100%">
							<tr>
								<td width="1px;"><input class="textBlur"
										onfocus="this.className='textFocus';"
										onblur="this.className='textBlur';" type="text" name="busca" value="<?php echo $stringBusca;?>" size="50" /></td>
								<td><input type="submit" value="Pesquisar" class="buttonOut" onmouseover="this.className='buttonOver';" onmouseout="this.className='buttonOut';" /></td>
							</tr>
						</table>
					</form>
					<br />
					<table width="100%">
						<tr style="background-color: gray; color: white;">
							<th>Nome da oferta</th>
							<th>Nome da empresa</th>
							<th>Turno</th>
							<th>Quantidade de horas</th>
							<th>Vagas</th>
						</tr>
<?php
if (!empty($rs)) {
	foreach ($rs as $r) {
		$cor = (++$i % 2) ? '#F4F4F4' : '#FFFFFF';
?>
						<tr bgcolor="<?php echo $cor;?>">

							<td><a href="<?php echo site_url('ofertas/detalhes/' . $r->slug);?>"><?php echo $r->nome_oferta;?></a></td>
							<td><?php echo $r->nome_empresa;?></td>
							<td><?php echo $r->turno;?></td>
							<td><?php echo $r->horas;?></td>
							<td><?php echo $r->vagas;?></td>
							
						</tr>
<?php
	}
}
else {
?>
						<tr style="background-color: #EEE8AA">
							<td colspan="5">Informe a palavra chave e clique em pesquisar.</td>
						</tr>
<?php
}
?>
					</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>